function openSidebar() {
    var sidebar = document.getElementsByClassName("navbar-side");
    sidebar[0].style.marginLeft = "0";
    var content = document.getElementsByClassName("content");
    content[0].style.width = "calc(100% - 120px)";
}

function closeSidebar(){
    var sidebar = document.getElementsByClassName("navbar-side");
    sidebar[0].style.marginLeft = "-120px";
    var content = document.getElementsByClassName("content");
    content[0].style.width = "100%";
}